home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWPart / Include / FWAbout.h next >
Encoding:
Text File  |  1996-08-16  |  3.1 KB  |  121 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWAbout.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9. //
  10. //    ODF Standard About dialog. Credits have 12 lines.
  11. //
  12.  
  13. #ifndef FWABOUT_H
  14. #define FWABOUT_H
  15.  
  16. // ----- Framework Includes -----
  17.  
  18. #ifndef FWSTDDEF_H
  19. #include "FWStdDef.h"
  20. #endif
  21.  
  22. #ifndef FWDIALOG_H
  23. #include "FWDialog.h"
  24. #endif
  25.  
  26. #ifndef FWPSTR_H
  27. #include "FWPStr.h"
  28. #endif
  29.  
  30. #ifndef FWPRESEN_H
  31. #include "FWPresen.h"
  32. #endif
  33.  
  34. #ifndef SLGCONST_K
  35. #include "SLGConst.k"
  36. #endif
  37.  
  38. //========================================================================================
  39. // Forward Class Declarations
  40. //========================================================================================
  41.  
  42. class FW_CIconShape;
  43.  
  44. //========================================================================================
  45. // Global Methods 
  46. //========================================================================================
  47.  
  48. void FW_About(Environment* ev,
  49.             FW_CPart* part,
  50.             FW_ResourceId id);
  51.  
  52. //========================================================================================
  53. // class FW_CPrivAboutPresentation
  54. //========================================================================================
  55.  
  56. class FW_CPrivAboutPresentation : public FW_CPresentation
  57. {
  58. public:
  59.     FW_CPrivAboutPresentation(Environment *ev, 
  60.                             FW_CPart* thePart, 
  61.                             ODTypeToken presentationType,
  62.                             FW_ResourceId id);
  63.     virtual ~FW_CPrivAboutPresentation();
  64.     
  65.     virtual FW_CFrame* PrivNewFrame(Environment *ev,
  66.                                     ODFrame* odFrame, 
  67.                                     FW_Boolean fromStorage);
  68. private:
  69.     FW_ResourceId     fAboutId;
  70. };
  71.  
  72. //========================================================================================
  73. // class FW_CAboutFrame
  74. //========================================================================================
  75.  
  76. class FW_CAboutFrame : public FW_CDialogFrame
  77. {
  78. public:
  79.     FW_DECLARE_AUTO(FW_CAboutFrame)
  80.     
  81.     FW_CAboutFrame(Environment* ev, 
  82.                 ODFrame* odFrame,
  83.                 FW_CPresentation* presentation, 
  84.                 FW_CPart* part,
  85.                 FW_ResourceId id);
  86.  
  87.     virtual ~FW_CAboutFrame();
  88.     
  89.     // ---- FW_CDialogFrame API -----
  90.     virtual void        HandleNotification(Environment* ev, const FW_CNotification& notification);
  91.  
  92.     // ----- FW_CFrame API -----
  93.     virtual void         Draw(Environment *ev, ODFacet* odFacet, ODShape* invalidShape);
  94.     virtual void        CreateSubViews(Environment* ev);
  95. #ifdef FW_BUILD_MAC
  96.     virtual void        FacetAdded(Environment* ev, ODFacet* facet, unsigned short facetCount);
  97. #endif
  98.  
  99.     virtual FW_Boolean    DoAdjustMenus(Environment *ev, FW_CMenuBar* menuBar, 
  100.                                     FW_Boolean hasMenuFocus, FW_Boolean isRoot);
  101.  
  102. private:
  103.     FW_CIconShape*        fIconShape;
  104.     
  105.     FW_CString            fPartNameFontName;
  106.     FW_FontStyle        fPartNameFontStyle;
  107.     FW_Fixed            fPartNameFontSize;
  108.     FW_CString            fPartName;
  109.     
  110.     FW_CString            fVersionFontName;
  111.     FW_FontStyle        fVersionFontStyle;
  112.     FW_Fixed            fVersionFontSize;
  113.     FW_CString            fVersion;
  114.  
  115.     FW_CString            fCreditsFontName;
  116.     FW_FontStyle        fCreditsFontStyle;
  117.     FW_Fixed            fCreditsFontSize;
  118.     FW_CString            fCredits;
  119. };
  120.  
  121. #endif